/**
 * 
 */
package org.swing.utility.jdbc.base.dao;

import java.io.Serializable;

/**
 * @author lqnhu
 *
 */
public class OrderBy implements Serializable {
	private static final long serialVersionUID = 4003133712928270310L;
	private String name = null;
	private OrderByType orderBy = OrderByType.ASC;
	public OrderBy() {
	}
	public OrderBy(String name) {
		this.name = name;
	}

	public OrderBy(String name, OrderByType orderBy) {
		this.name = name;
		this.orderBy = orderBy;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the orderBy
	 */
	public OrderByType getOrderBy() {
		return orderBy;
	}

	/**
	 * @param orderBy
	 *            the orderBy to set
	 */
	public void setOrderBy(OrderByType orderBy) {
		this.orderBy = orderBy;
	}
}
